package observer;

public class ConcreteObserver implements IObserver<Integer>{
	private Integer state = 0 ; //local copy of the state 
	
	@Override
	public void update(Integer value) {
		state = value ; 
		display();
	}
	
	public void display(){
		System.out.println("The value is:" + state);
		
	}
	
	

}
